#include <iostream>
using namespace std;
int main()
{
  double x, y, x1, y1, x2, y2;
  cout << "Vvedite tochku(x, y): ";
  cin >> x >> y;
  cout << "Vvedite tochku(x1, y1): ";
  cin >> x1 >> y1;
  cout << "Vvedite tochku(x2, y2): ";
  cin >> x2 >> y2;
  cout << ((y < y1) && (y > y2) && (x > x1) && (x < x2));
  return 0;
}
